<template>
  <el-card class="box-card h100" :style="themeOpacity">
    <div slot="header" class="clearfix">
      <span>我的常用</span>
    </div>
    <el-row :gutter="5">
      <el-col
        :span="12"
        :class="['card-two-item'].join(' ')"
        v-for="(item, index) in dataSource['sysReceptionCommonlyUserList']"
        :key="item.receptionApplyId + 'item' + index"
      >
        <el-link @click="goApp(item)" :underline="false">
          <img src="@/assets/images/notice-list.png" alt="" class="icon-image" />
          <span>{{ item.menuName || '未知应用' }}</span>
        </el-link>
      </el-col>
    </el-row>
  </el-card>
</template>

<script>
  import { mixin } from '@/mixin'
  export default {
    name: 'Often',
    props: {
      isDraggable: {
        type: Boolean,
        default: false
      },
      dataSource: {
        type: Object,
        default: () => {}
      }
    },
    data() {
      return {}
    },
    mixins: [mixin]
  }
</script>

<style scoped lang="scss">
  .card-two-item {
    padding-bottom: 10px;
    .el-link {
      line-height: 26px;
      .icon-image {
        margin-right: 10px;
      }
    }
    .card-item-text {
      line-height: 30px;
      display: inline-block;
      width: calc(100% - 50px);
      text-align: left;
    }
    .card-item-num {
      display: inline-block;
      width: 50px;
      text-align: left;
    }
  }
</style>
